package com.eyaomall.wxmall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eyaomall.wxmall.dao.GoodsTransportDao;
import com.eyaomall.wxmall.model.po.GoodsTransport;
import com.eyaomall.wxmall.model.vo.TranspsortVO;
import com.eyaomall.wxmall.service.GoodsTransportService;
@Service
public class GoodsTransportServiceImpl implements GoodsTransportService {
	@Autowired
	private GoodsTransportDao goodsTransportDao;
	
	/**
	 * 根据goodsId查询此商品是否有运费模板
	 */
	public GoodsTransport queryByGoodsId(int goodsId) {
		
		return goodsTransportDao.queryByGoodsId(goodsId);
	}

	/**
	 * 根据ids和城市ID查询所有运费模板
	 */
	public List<TranspsortVO> listTransport(String ids,Integer cityId){
		
		return goodsTransportDao.listTransport(ids, cityId);
	}
}
